PostgreSQL, Middleware