added db.close() in setBlitzWeights