add db upgrade from 2 to 3