added command "upgrade" to upgrade the database files