Added the functions from database.h to section 3. This is not finished as I do not know how to accurately describe all of the functions. Also did some polishing throughout the document.