Getting nodestatus from database