Create entities and basic dao