Fixed the cqdb.py problem