Solved the manyToMany problem for the insert part.