PostgreSQL backend, initial implementation.