Change \R::Database() to \R::DB(), throw exception if registry class not found