How to upgrade the database for 0.10-dev