fixed auto date feature (on update/insert set date)