Don's right. The apm was converted to use the CR for storing tarballs, and it would be a good example to follow for handling the conversion of the simple-survey data-model. The apm_package_versions table is the place to start.
If you have any problems with it, just let me know, and I'll be glad to help out.