Some more refactoring in SqlType
Refactoring in SqlType, smapapi-8