SQL Fixes and tweaks (Mainly 2005)

Tested with 2005, 2008, and 2008 R2. Made some tweaks to SQLInstance to support an instance with a non-default object name, fixes the queries that would error out due to syntax or unsupported columns.