[REF] Remove comments
[FIX] Use the sequence in the case where we use postgresql and not in the case of SQLite (for the unittest)