Detect if database server is up

If not up, fail with return code of 1

Fixes #13