Add common.py for mongodb connection