Updated PHP files and MYSQL commands