fix bug,save db