working setup for json, http server and mysql connection