Replace extraStatics() by static $db