created servicetype dao and tests