monthly report sql implemented