added query_by_date method and updated readme