added function to populate tables

Added functions to populate tables courses_taken and courses_needed for
New Users who are On Course.
Courses are appropriately flagged in courses_needed for eligibility.