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.