Set game status and change timestamp in database on save

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