Made the SQL base-class make more sense.