Edit Timesheet search sql