Use scoop.shared module to share database cache location and hash.

We pass around the location and hash of the database cache file so
that each worker can load it and check it has the right version.

This removes the need for the "RMG_DB_FILE" environment variable.