SQL object base class and related stuff updated