change sql trigger value to current date and add where clause on date