Removed table sql and put in main spec