sql queries stored on file