Updating cassandra code to use seperate sessions.