Using postgres results in panic during migration due to "sqlite3" being hard-coded as the db dialect for performing `ScriptMigration`. This commit fixes this behavior by selecting the proper dialect from config.