db lecture fix