Adjusting crud to handle indices