updated dao to test with local db