Fixes #2654: Allow CDbCommand to compose queries without 'from' clause

Fixes #2654: Allow CDbCommand to compose queries without 'from' clause