Refactor. Model schema moved to assets_helper.py from db.py and queries.py.