errors and db operation update