NTFY-57: adjustments to support new database and API structure and adjusted permissions checking