update & fix bugs-transition,services,db