Admin page: Contest export: Generalise export to work with postgres as well

2 jobs for admin-export-contest-data-csv in 14 minutes and 7 seconds (queued for 1 second)
latest
Status Name Job ID Coverage
  Test
passed clippy #1989

00:06:54

passed test #1988

00:07:12