database: Configure server to serve JSON response