selecting and saving games from database