Fixed the issue with the DB insert timestamps

php active record error fixed made in this code