public RepositoryFactory(string server, string port, /*string userId, string password,*/ string database)
        {
            npgsql = new NpgsqlConnection("Server=" + server +
                                          "; Port=" + port +

                                          /*"; User Id=" + userId +
                                           * "; Password="******"; Database=" + database);
            sqlConnect = new SQLConnect(npgsql);
            OpenConnection();
            MessageBox.Show("Connection opened");
        }
 public SQLConnect GetNewSQLConnection()
 {
     return(_newConnect = new SQLConnect(_conn));
 }