Minor change db class
changed some requires to require_once