Add past date query
added get_yesterday method