Final form of adding and getting local data