script for matching on the front end is done; i need to populate related records with related data, now