Updated creation of `nodes` table