fixed db upgrade issue, i think