fix format of result of extensions query and related functions
3 files changed