updated database and table