'Read props from db and return id->thing dict.'

@classmethod
def get_things_from_db(cls, ids):

    props_by_id = tdb.get_thing(cls._type_id, ids)
    data_props_by_id = tdb.get_thing_data(cls._type_id, ids)
    things_by_id = {}
    for (_id, props) in props_by_id.iteritems():
        data_props = data_props_by_id.get(_id, {})
        thing = cls(ups=props.ups, downs=props.downs, date=props.date, deleted=props.deleted, spam=props.spam, id=_id)
        thing._t.update(data_props)
        if (not all(((data_prop in thing._t) for data_prop in cls._essentials))):
            g.log.error('%s    missing    essentials,    got    %s', thing, thing._t)
            g.stats.simple_event('thing.load.missing_essentials')
            continue
        things_by_id[_id] = thing
    return things_by_id
