fixed updating of the SQLite database
fixed input prompt