am 57575cb8: Merge "Fixed the scope of database query for testWhenByDayQuery"

* commit '57575cb8e4d4ae031e00b9ab1105cd914a150b76':
  Fixed the scope of database query for testWhenByDayQuery