Removed dependencies on openquake.engine.db, so that logictree
can be loaded in a non-server environment