Create model.py

db code sqlite access