........S. [ZBXNEXT-2260] added patch calls to macro replacement function; updated database schema template; updated frontend define for database version