How to get auto generated field values (primary keys etc) after inserting a data entry to the database [ for PostgreSQL]