$f3->set("db.instance", new DB\SQL(
"mysql:host=" . $f3->get("db.host") . ";port=" . $f3->get("db.port") . ";dbname=" . $f3->get("db.name"),
$f3->get("db.user"),
$f3->get("db.pass")
));
$sql = "INSERT into table ...."
$res = $f3->get('db.instance')->exec($sql);
print_r($res); // always display me 1
echo $res->id; //Trying to get property of non-object$id = $f3->get('db.instance')->lastInsertId();