replaces sqlite with postgres db for dev and test
fixes bug in alive and dead query