added onUpgrade method