retrieves data successfuly, implemenets performance optimizations
Merge pull request #56 from scottjason/optimize-performance

writes and retrieves data successfuly, implements performance optimizations