take photo and upload to SQL DB with php file