Update models.py

Added Metadata to order by timestamp