in your table structure for ``comment`` maybe you could set its default value to ``CURRENT_TIMESTAMP`` so that you wont need this part of your query → `` created = NOW()``
this could also be applied in line 101 , and your table structure for ``thread`` po