Expand settings values in SQL (ref #776)

Now possible to use settings values in SQL files