convert import.py to use the ORM