Changed database and reports

Reports user interface working, queries are written. Next up need to
make a table function and test.