Create sql-part