Added Logging to SQL Test