fleshing out DB and tests