create base tables