Database: fixed operator control in SqlBuilder [Closes #996]