Fix problem with mysql string length (See #710)
fix for #669
Merge pull request #817 from teichsta/npw-with-security-external

fix for #669
Merge pull request #814 from cdjackson/mysql-bugfix

Fix problem with mysql string length (See #710)