Conversion from MongoDB to RethinkDB