update table name and put the database update on exception