Started implementing support for indexes. Currently they are updated when a document is inserted or updated but they are NOT being used yet when searching
Tweaks to jaguarDb code. Mostly moved functionality to specific functions