use JSON.simple for download. changes for the dbadapter