fleshing out db and upload