fix db
update errors