update data.db
update code to manage updated database