returned ajax /api/db/ call as it could be gzipped and served by nginx later