Encapsulated Template Loading And DB Connection Into Functions In Main Controller Class
Fix Coding Errors With Previous Commit