Refactor and add url logging to SQLiteChatLogger