entity export to db