refactor connection databse connection method