Added test to see if table exists