AddDbContext method for DI

I think we can finish those details later this week. @rustd needs this enabled to be able to add it to the templates.