# Functions
AddNewDocument adds a new document to the database.
CalculateUUID for the incoming file.
DeleteDocument fetches the requested document by ULID.
DeleteDocumentFromSearch deletes everything in the search engine.
FetchAllDocuments fetches all the documents in the database.
FetchConfigFromDB pulls the server config from the database.
FetchDocument fetches the requested document by ULID.
FetchDocumentFromPath fetches the document by document path.
FetchDocuments fetches an array of documents //TODO: Not fucking needed?.
FetchFolder grabs all of the documents contained in a folder.
FetchNewestDocuments fetches the documents that were added last.
SetupDatabase initializes the storm/bbolt database.
SetupSearchDB sets up new bleve or opens existing.
UpdateDocumentField updates a single field in a document.
WriteConfigToDB writes the serverconfig to the database for later retrieval.
# Variables
Logger is global since we will need it everywhere.