Swarm taking data from database