Use postgresql for testing

Conflicts:
	Makefile
Improve efficiency of vacuuming
Fix vacuuming