put db info into constructor