added back link and eliminated duplicate database entries for visited scenes