Baltimore Mayor Martin O'Malley and former mayor William Donald Schaefer have urged lawmakers to pass legislation to ensure the Preakness Stakes at Pimlico Race Course remains in Baltimore.