Modified to using the java datastax driver and upgraded to use CQL 3