major changes to index db functions

old index db creation logic removed
database closed moved from on success to on complete event
css improvement cursor pointer added