updating sql error
updating query director code
Merge pull request #12 from pannellr/pannellr

Add director logic