Get new column value using PostgreSQL sequence and serial column and keep referential integrity