private static function openDBConnection()
 {
     $configs = (include 'config.php');
     $connectionQuery = "host=" . $configs["host"] . " port=" . $configs["port"] . " dbname=" . $configs["dbname"] . " user="******"user"] . " password="******"password"];
     self::$dbConnection = pg_connect($connectionQuery);
     if (!self::$dbConnection) {
         echo pg_last_error();
         return FALSE;
     } else {
         return TRUE;
     }
 }