Fix most of the regression tests
Fix unnecessary seq scans