trigger "replicated" and "denied" events on db.sync & db.replicate

I'll send a pull request in a bit