resolves issue #4 and cleans trailing whitespace.  Also removes unnecessary parts of mysql statement
Merge branch 'master' of https://github.com/makinj/MeNext