Fix rethinkdb adapter