Fix bad rethinkdb api call.