Refactor dbConn