ADDED SQL TO INDEX