Updates to ContactDB

Corrects bug when adding, deleting, and editing contacts.