store sql in a file