adding init -i flag to db.py