fix app to new database