Connect to database and add unit test in DAO layer