Timesheet search sql changed