connection system refactoring, use DAO to database access