Set up db configuration