# TODO do this only if spell depends on `db'
on_cast db check_self
