Fix JS error on no csq database found