added search by date in backend