Howdy! The City of Data database is a convoluted mess and probably wouldn't be good to work from unfortunately.
If you want to save yourself the trouble, we're actually working (moderately slowly) on a mobile/netbook/desktop compatible successor to Mids' written in HTML5 that will be compatible with most browser-capable platforms out there.