fix up some db indexes