db class fix.