Fix for SQL
Merge pull request #124 from KayenEQ/master

Fix for SQL