VersionApp: Add indexed on other tables that are exported

Backgroud

Export queries for VersionsApp starts to take too much time and time outing during ci job

Goal

Improve query performance by adding index on filter condition

Edited by Mikołaj Wawrzyniak