Update src/Orm/lib/class.core.php

clean 

$gCms = cmsms();
$db = $gCms->GetDb();

to

$db = cmsms()->GetDb();