- Add metadata_source field to track origin of model metadata - Define MODEL_COLUMNS constants for consistent column management - Refactor SQL queries to use dynamic column selection - Improve Civitai data detection to include creator_username and trained_words - Update database operations to handle new metadata field and tag management