add db entities and base models