Re-added try catch with db update