api function for upgrading accounts