Create indices as indicated by the model
COUNT(*) is slightly more efficient than COUNT(distinct __objectid) on an encrypted store

There is no difference in actual function though since __objectid is
guaranteed to be non-null and unique
Merge remote-tracking branch 'upstream/master'
Merge pull request #62 from ubanquity/master

Some speed improvements