rethinkdb query prepare