database and exception update