more conditions when (first) creating pages table