more fleshing out of db methods