Fix migration upgrades (#512)
Fix migration upgrades (#512)

* Fixing migrations to not stamp before upgrading and fixing stamping CTFd from before migrations

* Making functions for upgrades

* Move migration stamp into confirm block

CTFd/CTFd,ajvpot/CTFd,LosFuzzys/CTFd,isislab/CTFd,CTFd/CTFd,ajvpot/CTFd,LosFuzzys/CTFd,CTFd/CTFd,LosFuzzys/CTFd,LosFuzzys/CTFd,isislab/CTFd,ajvpot/CTFd,ajvpot/CTFd,isislab/CTFd,isislab/CTFd,CTFd/CTFd