added PHP and database stuffs