Changed None to 0 for .latest() from empty Queue
Changed template to string.Template, argv sql query
Changed test to reflect 0 rather than None for .latest()