Code restructuring: AbstractSQLModel functions.