add console feature for db upgrade
Merge branch 'develop'