Add find_sql_by_pid