adds indexes on users
Merge pull request #506 from opf/fix/index_on_users