title: psycopg2.extras.DictCursor not returning dict in postgres
body: <p>Im using psycopg2 to access postgres database using the below query. In order to return a dictionary from the executed query, im using DictCursor in my cursor but still my output is a list and not a dictonary.</p>
  
  <p>Here is the program and output below.</p>
  
  <pre><code>import psycopg2.extras
  
  try:
      conn = psycopg2.connect("user='postgres' host='localhost' password='postgres'",
                              )
  except:
      print "I am unable to connect to the database"
  
  cur = conn.cursor(cursor_factory=psycopg2.extras.DictCursor)
  
  cur.execute("""SELECT datname from pg_database""")
  
  
  rows = cur.fetchall()
  print "\nShow me the databases:\n"
  print rows
  </code></pre>
  
  <p>Output:-</p>
  
  <pre><code>[['template1'], ['template0'], ['postgres'], ['iip'], ['test'], ['test_postgres'], ['testdb']]
  </code></pre>