Added required interface to mssql db class. Also, added checks to tracing class to increase performance avoiding internal exceptions.