[REM]Replaced period_id with date_account from reports and imporoved stuff.