Fix for #77.  Cleaned up data w.r.t. to devices having serial numbers with trailing whitespace.
Previous way of constructing the SQL was causing a syntax error. Some interaction between prepared statements and GStrings.
Merge pull request #78 from aodn/issue_77

Fix for #77.  Cleaned up data w.r.t. to devices having serial numbers wi...