with connection to external DB