Factor out connection
Added Ores
Finally factored out connection