refined class interactions and methods

major changes in database classes. no duplicates in user_code. user can
now unsubscribe from match