Add PostgreSQL functionality