private void PerformDatabaseQuery(string dbStatement, Action <List <Dictionary <string, object> > > callbackAction, Connection optionalConnection = null, params object[] sqlQueryArguments) { var sqlConnection = optionalConnection ?? GetSqlConnection(); var query = _mySql.NewSql().Append(dbStatement, sqlQueryArguments); _mySql.Query(query, sqlConnection, callbackAction); CloseConnection(sqlConnection); }