postgresql7.4
SELECT cc_session__new (NULL, :name, $start_date, $end_date,
:user_id, :peeraddr, :package_id)
UPDATE cc_session
name = :name,
start_date = :start_date,
end_date = :end_date
WHERE session_id = :session_id
UPDATE acs_objects
SET modifying_user = :modifying_user,
modifying_ip = :modifying_ip
WHERE object_id = :session_id