finish up SQL, and not having a memory hog, every byte counts I guess