corrected sqlite gen error; removed debug echoes