update to db call for lessons with matching assignments/assignment key