Drop/create databases from a master connection, rather than the database we're trying to drop or create
Raise an error on getting a master connection, as it won't work for databases other than postgres
add an optional template arg (which will allow purge to be used for creating dev db from reference db)