NXP-11370: fix stored procedures using proxies table (PostgreSQL, SQL Server)