In Shapefile class, automatically open PG connection when database is created.