fixed bug for arbitrary API settings
bug fixes

Omit consumer token warning if it’s set
Wrong logic for SQLite query debug messages