PostgreSQL adapter extracted to separate package