Fixed issue with database.Now works correctly.Now i drop preferencetable every time app launches for first time.