Fix AdvancedDbContext and AdvancedObjectContext

Fix AdvancedDbContext and AdvancedObjectContext when we don't use
ICreateUser and IUpdateUser