Added redirect after safe in db