filter trade stats by date range
Adds constraints to distribution_references table, as well as an unique index on distribution_id and reference_id
Only set updated_at and created_at for distribution_references where these are NULL
removing some strange characters, which appeared due to copy paste
Update updated_at if null, and created_at if null
Merge branch 'distribution_references_timestamps' into develop