Basic implementation of persistent PostgreSQL