convert db test helper methods to static ones
convert db test helper methods to static ones


Former-commit-id: 096d3cd12d60749af351e21df77927ee27976406
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine