Export a PostgreSQL Database as JSON