I did a fair amount of testing with arduino-based SD-card storage, but as long as you had some sort of way to store bytes to your preferred medium, that shouldn't be too hard to hack yourself. Check out https://github.com/graemedouglas/LittleD/blob/master/src/dbs...
EDIT: Please let me know how/if you end up using it! Or if you run into bugs! :)
EDIT: Please let me know how/if you end up using it! Or if you run into bugs! :)