Generate nested namespaced keys for key-value databases with Elixir