creat models's script from db