remove unnecessary primary/foreign keys