Fix updb tools