fixed static database connection and added db::Nodes as a friend - this should possibly use inheritance instead
Added node ID lookup function - this possibly needs some input sanity checking