AMENDED AND RESTATED LOAN AND SECURITY AGREEMENT dated as of June 13, 1997