add dao test, remove unneeded mock code from dao tests
add dao support for query by parameter