extend copy_case to support commtrack models

- also migrates sqlproducts over correctly
- small moving/cleanup of code