- moving db selection into the connect function