Replaced suffix _id with _ref for column that are not FKs.
Replaced suffix _id with _ref for column that are not FKs.


Former-commit-id: 687c18d8b80365d7690bc2e7947a0eac14ecac28 [formerly f7c6cb2f130a575caa6558ac05c5c6e34cc31684]
Former-commit-id: 0a5347b19a3337bd18b743b31c840ad433dc3ee9
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine