ugly working prototype - no real db yet