updated to passing a connection to migration tasks objects