Revised the system to save to a database.
Updated some more of the documentation for later.