Migrate db on app startup