(feat) query for matches and cards now in place

created the matches and cards api endpoints.