fixed bug where some relations were not returned because the sql did not take into account an sql that had a directory structure in it.
fixed bug where some relations were not returned because the sql did not take into account an sql that had a directory structure in it.