Lost progress after loggin in another device

As the tittle states, I logged in another PC and had to reset all the progress I made, it was just a few minutes but I could advance after a reset. Today I came back to the first computer to keep practicing and I cant even reset properly, any advice? I was doing the students data base in SQL.

you need to connect to the database to be able to use psql commands

I had trouble resetting to get to the connection step on the tutorial, I couldn’t do it, or do you mean something else?

you don’t need to change step to be able to connect, you can do it at any point,
you need to type

psql --username=freecodecamp --dbname=<name_of_database>

change the <name_of_database> with the name of the database you want to connect to