Added function files. Updated Document to further abstract content. Updated init to include new function files and define database credentials.