altered the sql script