[repository] operations get a connection instead of a session
Left extid2eid unchanged because that function scares the shit out of
me.
ifnotrql('CWConstraintType X WHERE X name "RQLUniqueConstraint"',ask_confirm=False):rql('INSERT CWConstraintType X: X name "RQLUniqueConstraint"',ask_confirm=False)