introduced matchup db facade, added tests