Fixed class variable inheritance problem. Base.primary_key is what sets up the class vars.
Loading and inheritance problems solved.