Store the sequence in the database.