Committing refactored DatabaseController, implemented Dependency Injection so that in the future we can add other database managers (if we decide to).