fix attempt db