Created view and dao structure