PHP scripts for website and database handling