Map database data to the JSON.
