Add Export to SQL functionality