MaintainDatabase

Supporting function for the database maintenance area.