add builtin has_role_attribute SQL function