Removed old switch button implementation. Sqlite database upgrade improvements