writing report DB access code
writing report model