check for table existance before creation