add make-progress and undo into functions.php

And use connectToDatabase on home page