Use Postgres RETURNING in DbFactory