Retrieve cattle quality from database