BM - Cleaning up resource leak in databaseupdatethread.cpp run()
function