Renamed functions.php to db.php to fit namespacing conventions. Created general purpose functions for interacting with the DB.
Created blog.php to keep files DRY.
Removed config.php, moved setting to db.php
Created new functions.php for functions unrelated to DB operations.
Created views for index.php and single.php. Layout.php for holding html template.
created index.php to show all posts.
Created single.php to show single post by id in the DB.