Handle timestamp generation in db.php, update timestamp during image renaming