add indexes for foreign keys