abstract out db info