added QA document and changes to insert into database