SQL changes!

SQL declarative now has a second controller class and most stuff has
been converted to lower case instead of camel case.