some sanity checks for the table creation