Changed TOKEN to APPID
Database migration for token field