revert utils

fix null database value