Refactor views
Update init_db.py