added code to grab goals from database (commented out)