add mirror_db script
query off the aggregate table for daily stats