Fix updating db on a current view