Added db entity create table and insert functions