fixes db class