I createed a table in user.db, this file is in my xcode project folder.
user.db
create table user (uid INTEGER PRIMARY KEY ASC AUTOINCREMENT, username,
You can't update databases stored in the app resources. Try copying the database to your app's Document or Library folder and then updating the database there.