change index.php file to save data into databse