updating of the database element by id is added for router.js