Changing database now stays on same screen