Small (untested) partial implementation of Contact database.