Got n-n relation working. Needed some database schema changes