added debug output to DbConnector.