Streamlined and corrected SQL Updater

Fixed a few issues and removed redundancies.
Merge remote-tracking branch 'upstream/master'
Changed SQL updater to use case-insensitive check
Merge pull request #51 from Pikachews/master

Streamlined and corrected SQL Updater