changed retireSD() to SDmaintenance() and added 'glued' as option, removed UNIQUE index.