Database design of entity