Fix pgsql not null violation for timestamp columns