attempt to repair connection lost in postgreSQL by creating database
before script execution