Cleaning up unnecessary SQL tables