Updates to the database