Database macro's fixes and more usages, less code required in multientities.
Build library