EX-10.5 AMENDED AND RESTATED SECURITY AGREEMENT dated as of April 5, 2000