update: model.py parametric db
update try-except function.py
update: main.py create database if not exist
update: step.py try-except conditions