Re-organises tests. Puts postgres specific code into the postgresql module.
Makes database sources modular.