Create correct tables