User macros are stored in the bandana table:

select * from bandana as b where b.bandanakey = 'atlassian.confluence.user.macros';