Database: SqlBuilder::addWhere() consider NOT [Closes #667]
Databae: fixed builder with empty array