I feel that this piece of code doesn't belongs to the tkworker (maybe should be in the contactsdb?)