Added indexed db, some minor issue with lunr @ToDO