Adding and updating is now working fine