the only that will need to be moved is the connection line:
<?php require_once('../Connections/localhost.php'); ?>
I have verified this happens if the connection line is already on the page before the wizard is run and logged this as a bug, thanks for bringing it to our attention.
if the connection line is not on the page before running the wizard, the code is placed in the correct order.