Fix an issue with the sequence on a new database