extra, db: we have to record every function call in the db