Standardize enums LogicalOp, ExpressionValue
Remove unused CloseAllDB