fix historic init sql