[scripts] Add missing "if not exists" to sqls