Added index functions. Also added ability to delete all records.
Also remove old indexes
Callback never called
Updated bunch of stuff