when was the last time the niners won a game