Changed code to require the sql be in a file