Mock pgdatabase