pv count function
update sql file
last comment function: