Updated headers.
Code cleanup.
Parameter creation.
Fixed casing.
* Simpler select generation.
* Removed some obsolete comments.
Removed obsolete comment.
T-SQL to SQL
Removed unsupported function.
Work on some canonical functions.
Formatting.