Use search_bytime() to search for the entries in DB