Add ability to load indexes from ddocs
Properly save index expression