Input data into MySQL is functioning