Fixed Back/Forward navigation. Implemented index caching for database mode.