Added function to get the most recent complete game's game id.
Added sql functionality.