use db row count to check upgrade