change the db and change the main UI