Fix sql scheme