Make Db inherit from EventEmitter