optimize DBConnection