raise Exception if context.json does not provide database keys