Finished linking accounts

I added linkid in the db and had to use localStorage.linkid
It's better than using previousGridid but there was no way in doing it
without this.