add sql file and fixed model select