Fixed maintenance. It now dumps the database to file correctly and deletes unneeded information, and manages the setting of days remaining in registrations.