initial db lib built, not tested