Due to the crucial changes in SQL model, the old queries can't get the requirement data. <code>tools.py</code> should be updated