convert fixtures to SQL