Loading nodes from db, filtering nodes