uh why am I saving to memory.  should be to db