improve create indices script
Merge branch 'master' of https://github.com/jackrr/obiechat into production