Map database data to the JSON.

WWW: http://www.mysqludf.org/lib_mysqludf_json/
