Add/drop constraints in sync

Wasn't there before because the functionality was missing in mosql. It's in now.