func (db *DB) FireEvent(e Event) {
	log().Debug("Processing callbacks")
	for name, c := range db.cbs {
		log().Trace("Calling callback", "callback", name)
		c(e)
	}
}
FireEvent fires an event to all callbacks.
package db
import "path"
func (db *DB) RegisterCallback(name string, c Callback) {
	if _, ok := db.cbs[name]; ok {
		log().Warn("Attempted to register duplicate callback", "callback", name)
		return
	}
	db.cbs[name] = c
	log().Info("Database callback registered", "callback", name)
}