renamed DB::pairs to DB::selectPairs