Remove code that snuck in
Change $core->framework to $core
$core->framework to $core
$core->framework to $core
$core->framework to $core
$core->framework to $core
Better error handling for MySQL Error