[sql] add a collator for log level

Fix for #77