added record.session_id= sid

fix #6