Retrieve barnyards list from database