Set foreign keys off whilst updating the costs