- Fixed various SQL errors.

- Built against CB 1.4.7-R0.1