Builds initial db