AddDbContext method for DI

I would move it all out of the context and make it all public.