Clean up foreign keys so that users can be deleted