made fewre connections to db