more refactoring towards a cassandra abstraction