Changed all SQL statements and their table and column names to upper case. This is useful for connecting to different database types on different operating systems (case sensitive or case insensitive).