adding delay after db fail