Database setup with entity.