write data to cassandra