changed databasehelper, made match object