prototyping a small mongob-like db in scala