hal for apps and databases