fix bug,save db
fix