Fixed bug where screenshots did not show up for games

As some people have noted on IRC, screenshots no longer show up for games. This was probably broken by the database acccessing scheme overhaul, and is fixed in this pull request.