Improved header comments.
Merge all MetricsGrimoire configuration in mgConf.
Clean up prepare_db (formerly _prepare_db)
Close cursor and connection in _prepare_db.
Use contextlib.closing() for closing database cursors.
See more info:
http://stackoverflow.com/questions/5669878/python-mysqldb-when-to-close-cursors