removing race condition from table creation