# refactored model & DB to support segments