Now taking into account special tokens while upgrading database
Fixing SQLite issues while upgrading database