Adding code for migrating settings and database to the new location