code: def namedb_name_insert( cur, input_name_rec ):
      
     
      name_rec = copy.deepcopy( input_name_rec )
      namedb_name_fields_check( name_rec )
  
      try:
          query, values = namedb_insert_prepare( cur, name_rec, "name_records" )
      except Exception, e:
          log.exception(e)
          log.error("FATAL: Failed to insert name '%s'" % name_rec['name'])
          os.abort()
  
      namedb_query_execute( cur, query, values )
  
      return True
docs: Add the given name record to the database,
      if it doesn't exist already.