School exercise - Game Hangman with database connection