ATutor is good at IMS CP, and open source, so why not use it:
I see 2 ways:
1) may be it's possible to map our database to their and vice verse, as their DB isn't complicated much
. 2 (more perspective)) take their code for IMS and adopt it or make some interface to it.
it seems to be ~10 files - and thats all