Adds create database algorithm

All nodes all the time