Update cdbfunctions.py

Added update_visit function, modified list_visits to return all visits (and additionally, the visit ID) instead of 3.