syntax changes to models, use imported db rather than import model