Add check for table already exists