updated to take db options / create report