fixed safety issues
uploaded sample sql file