First password in db is not re-encoded during upgrade

During the upgrade process, the limit query starts on the position 1.
In a MySQL database, the first item has position 0.