Make DB API functions return JSON-API compatible objects