generate the entity by sqlite