updated SQL
Merge pull request #46 from BuracayBeach/v1.8.a

updated SQL