fleshing out of db injection