Added cgi inputs first name and lastname, changed query for new inputs adjustments