Don't migrate on new db

Fix errors when installing a db, sometimes the migration script ran.