New query in php file, taking all data from the view in the db I have created. It's a bit more efficient. In html edited everything that has to do with the above query and also fixed the functionality the a checkbox is unchecked (fade the node that was unchecked)