read debug from config sql