add indexes to foreign keys