If you're going for dom V and reached your target tech, just sell all the science building and you save a ton of gold, you can also sell food buildings since you don't want you cities to grow anymore after that point when happiness will be a real problem.