made lesson and project models relational