title: Set correct data type with mongodb and python
body: <p>I've just started using mongodb via the pyhton drive (pymongo). When I'm posting new data (which actually comes from a MySQL db) some data types appear incorrectly mapped. For example, some single digit number are inserted as long ints, a timestamp is inserted as a string. Also the date which is stored in MySQL as YY-MM-DD is changed to YY-MM-DD 00:00:00 (i.e a time is added).This seems like a waste of space, is this normal procedure for mongodb or should I somehow change the data types which are incorrectly(?) mapped?</p>
  
  <p>ps I did search through the docs as mongodb but I couldn't find anything to match my query. </p>
  
  <pre><code>post = {
      "title": video_title,
      "ext_id": video_external_id,
      "source": video_source,
      "date_added": d1,
      "views":{
                "views_all": views_all,
                "views_year": views_yr,
                "views_day": views_day,
                "views_week": views_wk,
                "views_month": views_mo
                },
      "video_type": 0,
      "hd": video_hd,
      "features": featured,
      "video_thumbs": video_thumbnails,
      "video_main_thumb": video_main_thumbnail,
      "length": video_length,
      "length_sort": video_length,
  
      "rating": {
                "rating_all": rating_all,
                "rating_year": rating_yr,
                "rating_day": rating_day,
                "rating_week": rating_wk,
                "rating_month": rating_mo
                }
          }
  posts = db.posts
  post_id = video_list.insert(post)
  </code></pre>