Refactoring: SQL text commands moved to separate class

Improved handling of LOB objects