Fixed fetch to use ot.apply instead of snapshot.type.apply
Autoselect query mode
Removed direct dependancy on otTypes in index