outsourced db connect