added routine to monitor pvs and add them to the database