fixed bug of created_at and updated_at
transaction