Set game status in database on save

Game status is now set correctly when saving game to database.

This pull request requires a database update.

Fixes #171.