added update.php and mark_read.php