fix missing column entity_id in user table