Added more error handling to UpdateDBThread class.