db index bugfix
Merge branch 'master' into develop