[pvr] refactor CPVRRecording::UpdateMetadata to minimize opening
and closing of the video database and to ensure the database is
always closed once opened