Fix when connecting to pgsql when the database from the cfg file does not exist and there is no pre-existing database named as the username