Fixed query time bug when querying for dates other than today
Renamed sync userId variable