Refactoring DONE, moving onto comments.

DBManager is now functioning. Will need some debugging. All SQL
interaction now performed by the manager.