Create entities and dao for using order history.