Getting db error during upgrade