Added IF EXISTS so as not to throw an error when no indexes on table