build emotions from database