fixed reports and auto update mysql