Updated the database and functions to manage the databse. The most recent documentation has been added.