sqlalchemy

added test for the match function. still some todos remaining.