create count_pv.py and get_db.py