This API handles interactions between an external program e.g. a browser and the database.
Most API endpoints are wrappers around these functions.