move stuff around
add documentation
put everything in the route function
more cleanup
add billto
put report definitions in the database
cleanup
reuse code