API Move of codebase to parameterised query database abstraction layer
API Renamed SQLQuery to SQLSelect. Deprecated SQLQuery.
Removed refactored reports out
BUG Fixed unquoted column condition