plugging in db