fixed bug where new schema name would not be used if one was specified on connection.
debug trace option made better (now doesn't throw notices)