Modify contracts tables