Bengt StatusDB

Allows calling on_error and on_result correctly with function and arguments in more situations.