update db stracture