public static function last_error() { if (self::$connection) { return @pg_last_error(); } return "Database server unreachable."; }