removed unneeded sql stuff.