add support for return id in postgres

The sql.Result.LastInsertId() does not work with postgres, here a solution to get the created id.