Developed code to fill matches from database