Remove unnecessary db lines