DB update bug fixed