Used the older but better-documented db interface.