fixed DB issue in the Qualcomm challenge