Move model import after db import.