working pymongo connection to db