Adapt prepareDb.py to handle cfht data