database indexes fix