added store on db of errors