Revert all the things.

Postgres issues with queries

This reverts commits...

2813394
e5f2d9f
1d08514
986bbc5
d5211aa
37b0638
53b9612
3bd79a5
b6b009a
9207023
8d86dda
ea03975
94ab10b
39356e0