removed [None] default values from wsgi_handler, checked for strings in DB.query()