firePreEvent(new PreCreateTableEvent(tbl, this));
ms.openTransaction();
if (ms.getDatabase(tbl.getDbName()) == null) {
throw new NoSuchObjectException("The database " + tbl.getDbName() + " does not exist");
}
// get_table checks whether database exists, it should be moved here
if (is_table_exists(ms, tbl.getDbName(), tbl.getTableName())) {
throw new AlreadyExistsException("Table " + tbl.getTableName()