Fastening stands or frames to foundation