finished create master tables