Finish php to write to mysql.