Another experiment, avoiding globally fetch dbval - now database value can be obtained using get-db and is also a result of save. Code looks a bit more verbose, but no value is coming out of nowhere