model and db adjustments for indexes and timestamps