more sheet to SQL conversion