master: first stab at dao impl. very rough.