update game details to database