General utilities for working with the database API.