devices on devices.php page update the database automatically