Implement some Cassandra queries