Save query string to cassandra