made changes to sql script