remove sql query to find merchant