Fix many-to-many update
WEB-1649 move select to DB layer
Fix test
Merge pull request #7 from flyvictor/WEB-1649-pass-select-projection-to-db

Web 1649 pass select projection to db