add near and inside queries to finish RethinkDB