Fix schema not being specified on pg_get_serial_sequence
Readd update_updated_at function (still used by old tables)