Removed match code from join, moved to its own endpoints and db collection