add NotFound to __all__ of orm
add having and join support