fix database error in autoload, udate events part