Chhirp data layer and storage methods ( Factory Pattern)