fixed service support; improved sqlite adapter