Report generation module displays all reports if errors occur..currently unable to query DB