Can't connect to db

Hi! I was doing the final challenge (Number Guessing Game) when my sh file stopped saving. I tried some tips from this forum, my progress restarted, but now I can’t connect to DB and do this project.
It looks like this:

I tried the solution from this but it doesn’t work too.
Thanks for your help in advance.