Added a config file, a middleware for using the db object, and changed spacing in several of the files.