simple filesystem emulation on relational DB