added attachments, courses, homeworks and improved migrations