Fixed back button and eliminated duplicate database entries for visited scenes.
Fixed back button and eliminated duplicate database entries for visited scenes.