Asterisk realtime and macro

Hello! I cant find out why macro wont work from MySQL db, but perfectly works when it is called from extensions.conf anyone can explain why or how to run macro from Mysql?

Macro is deprecated. Use subroutines instead.

Thank you, will try.