a command to organize numbers from 1 onwards in the db?
Use AUTO INCREMENT rather using custom made functions.
Detailed Information & usage
Auto-increment allows a unique number to be generated automatically when a new record is inserted into a table.
Often this is the primary key field that we would like to be created automatically every time a new record is inserted.