11000 lines of well-factored code seems like a good bit to me. I've seen libraries of 1000s of LOC that were pretty much the same DB class (or set of classes) over and over, one for each table in a database.