Update db and code