Use the new Database\Result + Database\Statement classes.