Modified daos and added test class and test application context.