AID-330 Removed lots of obsolete rake/db code.