save db error fix