Changing implementation Thrift to Cql