working contactdb adaptation