Corrected further sql string escaping errors and removed priority field checks on NS records