Adding stuff to the backend to support the openreport/savereport.
openreport/savereport not finished.