Several additions to APIs, with respective database functions added.