moved table create to setupdb