Bug fixing : crash when not entering a number

All operations to take user choice were working only with number. So if
you were entering a string character there was an error from the
prompt. Now each user input will be controlled to avoid that.
Bug fixing : error when adding new row in DB

The id is the database primary key, so it is unique in all database.
Now, this aspect is treat in db_addrow function.