Optimize test_runs query methods performance. Improve datepicker formatting