final changes to db