Framework for PostgreSQL accounts