Converted DB connection to class, and fixed issue with sessions.
More work on DB class and controllers.
Finished converting edit to use DB class.
Cleaned up notes.