Logging added to OpenDB()