Worker: remove the contactsDb global

Along the lines of #261, this patch removes the `contactsDb` global as it's now a property of the `TkWorker` object.