store playCount in database