fix SQL bootstrap