Removed reference to old db variable.