sql error on contact removal