Refactor library, refactor base model to CassandraModel