Add previously missing indexes to speed up deletion.

All objects now have indexes on important columns where they had been missing, and all objects derived from Base now have an index on updated_at.