update queries to be able to edit with db after changing jstree data