[SQL] Base structure updated