Migrate the database on app start