fixing restfull database update