Refactoring of IService base. SQL started.