Setting up a virtual connection to PostgreSQL