add temporary (in memory json) database and a more functional index page