Extracted embedded SQL. using PDOWrapper.