Created dao class and necessary dtos