How exactly doe the DB get dirty in SQl? From what I remembered, AI opbejcts didn't get stuck when I was screweing around with this stuff about a year ago.
I did turns AIs off though . . .
Once during this test, a hex was corrupted by the cartel ownership being set to 2323 instead of 23... that seemed to be where the problems started.
Otherwise it is exactly the same as the flatfile for "dirtying the db"; dead mission AI accumulates from bugged missions caused by bad connections and ALTs. The server AI are created and destroyed regularly (I have it set to create one per turn and destroy up to 10 per turn - which does work - it provides a mimimum of AI, with allowAItotakehexes set to zero of course.)