Updating code to "Office Hours" video, to use single IDatabaseFactory instance and inject it.