fixed many-to-many relation not using write connection
Merge pull request #331 from SlKelevro/fix-relations-connection-usage

fixed many-to-many relation not using write connection