how to save money on buying a home in San Francisco