Basic export to SQL database