added time-specific searching, methods for building search query