Check if table exists before attempting to create