Also introduces a separate constant for the sql directory, so that it can be put separately from the rest of the data if required.
Reduces file size below 1000 lines.