Got it!
sql := 'INSERT INTO '|| $3 ||' (id,body) VALUES ('''|| $1 ||''','''|| $2||''')';
Thanks all :)Pete