Adding first iteration for basicdb impl