final checks
updates to the database