changed order of SQL-File execution because we need the function before the core model