erlang: simple key-value storage with OTP