trycatch in db