added logic to updated date fields in tables on create/update