Fixed client_id as MongoDB record ID

JSON responses had been removed; every request must be an HTTP request