initial draft - should create DB object in server/run context