Switched from database migrate to upgrade