updated implementation to use servername_asn mapping table from the database