Unable to save submitted data in a MySQL database using PHP