Upgraded MongoDB integration ( now database.py sore the db and db_connection values )