added method find_match into MysqlDatabase