datepicker and static SQL working