Fix the GMF export and tables

This pull request covers two tickets:

1. make the export of the GMF fast: https://bugs.launchpad.net/oq-engine/+bug/1169078
2. remove the need for the aggregation and remove the useless tables: https://bugs.launchpad.net/oq-engine/+bug/1187413