update database
fixed db error