Generate SQL for automatically updating timestamp columns