fix sqlserver and oracle scripts