Update the database with new data.