1. changed index.html to .php; created inputs and insertPic.php to add picture datas into the database.