Fix sqlite autoincrement detection

When there are 2 PK-columns the code would still mark the first column as autoincrement.