Database: completly refactored SqlBuilder::addWhere()
Database: fixed Selection as condition in subselect [Closes #288]
Database: fixed bug when subselect table have multi column primary key [Closes #288]
Database: fixed work with undefined primary key [Refs #288]
Merge pull request #945 from hrach/database-sqlbuilder

Database: completly refactored SqlBuilder::addWhere()