You shouldn't have to write new code - other people have had this problem.
Several 3rd-party apps (that I haven't personally tried) purport to be able to get other apps' data:
- http://addpod.com/juicephone
- http://www.macroplant.com/iexplorer/features/mount-iphone-disk-mode-file-folder-access/
- http://www.ecamm.com/mac/phoneview/
Note that there are some limitations - if the data is encrypted you'll have to retrieve the key somehow. Probably that requires a jailbreak or some more serious hacking.