Switched to many-to-many for links and tags