added more checks for string length and check for dupes before inserting
Merge branch 'dev' of github.com:nZEDb/nZEDb into dev