Updates to database.