updated SQL include