Replace None values with "NULL", fixes #1

Replaces None with "NULL", so that results from the database
are presented in a manner consistent with SQL.
Merge pull request #2 from timClicks/patch-1

Replace None values with "NULL", fixes #1