fixed errors - still not saving values to the table