Registered viewmodels and database context with container. Database context now commits on disposal.