When the amount field in the database reached a certain value, I wrote an order to create another table, it does, but it no longer writes in the new table and still writes i