Database: fixed saving union of needed columns in unconnected calls.
Database: added placeholder support for GroupedSelection
Merge pull request #1319 from hrach/db-fixes

Db fixes