changes can now be saved into database