From http://www.revsys.com/blog/2006/aug/04/automatically-updating-a-timestamp-column-in-postgresql/