Fixed db update script