Fixed minor bugs regarding DB Update (introduced by previous commit).