make foreign keys use secondary indices