Updating output generation and database.