adding sql reports as models
fixing compiling issues
fixingother compiling issues