generate SQL for dropping primary and foreign keys