[pvr] add missing database close call