populates table, proper disconnections handeling