Added event emitter to all_dbs.js
The emitted events are now standarized