Wainwright wins 19th, Cardinals beat Cubs 6-2