SQL structure for details sell.sql