Script to import model files into db using Tempfile