undid some tweaks, force db write in api.update