added the class field to database table and append_log function