After adding app.db, use it to register Entity as a resource

Name the resource AdminGen.