servicetype has problem add or update, move db function to dbhelper