add console feature for db upgrade