Updated PHP and database files