Feature ccase rethinkdb

Converted to rethinkdb.