Function createPostgresAdapter