DB query method (by id) with JSON string response