Added the basic persistence layer
first real attempt