Add dal functions in preparation for admin tool.