Pass connection to Database migration tasks instead of a single statement.