updated cassandra query