Fixed race condition by using mongodb inc instead of incrementing locally
Merge branch 'cassandra', remote-tracking branch 'origin/master'